﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Principal;
using Zatify.Domain.Abstract;
using Zatify.WebUI.Infrastructure.Absrtact;

namespace Zatify.WebUI.Infrastructure.Concrete
{
    public class ZatifyPrincipal : IZatifyPrincipal
    {
        public IIdentity Identity { get; private set; }
        public Boolean IsInRole(String role) { return false; }

        public ZatifyPrincipal() { }
        public ZatifyPrincipal(String login)
        {
            this.Identity = new GenericIdentity(login);
        }

        public Guid? SecurityToken { get; set; }
        public String Login { get; set; }
        public UserRole UserRole { get; set; }
        public String ZipCode { get; set; }
        public Double TimeZoneOffset { get; set; }
    }

    public class ZatifyPrincipalSerializeModel
    {
        public Guid? Token { get; set; }
        public String Login { get; set; }
        public UserRole UserRole { get; set; }
        public String ZipCode { get; set; }
        public Double TimeZoneOffset { get; set; }
    }
}